import request from '@/utils/request'

// 查询咨询优惠券列表
export function listAskCoupon(query) {
  return request({
    url: '/system/askCoupon/list',
    method: 'get',
    params: query
  })
}

// 查询咨询优惠券列表
export function selectAskConpon(query) {
  return request({
    url: '/system/askCoupon/select-list',
    method: 'get',
    params: query
  })
}

// 查询咨询优惠券详细
export function getAskCoupon(id) {
  return request({
    url: '/system/askCoupon/' + id,
    method: 'get'
  })
}

// 新增咨询优惠券
export function addAskCoupon(data) {
  return request({
    url: '/system/askCoupon',
    method: 'post',
    data: data
  })
}

// 修改咨询优惠券
export function updateAskCoupon(data) {
  return request({
    url: '/system/askCoupon',
    method: 'put',
    data: data
  })
}

// 删除咨询优惠券
export function delAskCoupon(id) {
  return request({
    url: '/system/askCoupon/' + id,
    method: 'delete'
  })
}
